#ifndef GRAPHICSITEM_H
#define GRAPHICSITEM_H
#include <QPixmap>
#include <QCursor>
#include <QGraphicsPixmapItem>
#include <QKeyEvent>
class GraphicsItem:public QGraphicsPixmapItem
{
public:
    GraphicsItem();

    void setMouse(bool mouse);
    bool isMouse();
    void setStart(bool Start);
    bool isStart();

protected:
    //事件重写
   void	mousePressEvent(QGraphicsSceneMouseEvent *event);
   void 	mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
private:
    bool mouse;
    bool start;


};

#endif // GRAPHICSITEM_H
